<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="./echarts.min.js"></script>
    <title>Document</title>
</head>

<body>
    <div id="main" style="width: 600px; height: 400px;"></div>
    <script>
        var myEchart = echarts.init(document.getElementById('main'))
        var option = {
            title: {
                text: '就业质量'
            },
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    // Use axis to trigger tooltip
                    type: 'shadow' // 'shadow' as default; can also be 'line' or 'shadow'
                }
            },
            grid: {
                left: '20%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            legend: {
                data: ['C2019A', 'C2019B', 'C2019C']
            },
            xAxis: {
                type: 'value',
                // nameTextStyle: { fontSize: 20 },
            },
            yAxis: {
                type: 'category',
                name: 'C2109班',
                nameLocation: 'middle',
                nameRotate: "2",
                axisTick: {
                    show: true,
                },
                axisLabel: {
                    show: false,
                }

            },
            series: [
                {
                    name: "C2019A",
                    data: [12010],
                    type: 'bar',
                    barGap: '0%',
                    emphasis: {
                        focus: 'series'
                    },
                }, {
                    name: "C2019B",
                    data: [12020],
                    type: 'bar',
                    emphasis: {
                        focus: 'series'
                    },
                }, {
                    name: "C2019C",
                    data: [12100],
                    type: 'bar',
                    emphasis: {
                        focus: 'series'
                    },
                },
            ]

        }
        myEchart.setOption(option)
    </script>
</body>

</html>